package com.tju.resource.model;

import java.util.Date;

import cn.hutool.json.JSONArray;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
    * 角色表
    */
@Data
public class SysRole {
    /**
    * 角色 ID
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
    * 角色名称
    */
    private String name;

    /**
    * 角色说明
    */
    private String remark;
    /**
     * 等级
     */
    @TableField(exist = false)
    private Long grade;
    private Date createDate;

    private Date updateDate;

    @TableField(exist = false)
    private JSONArray roles;

    @TableField(exist = false)
    private JSONArray halfRoles;

    @TableField(exist = false)
    private JSONArray mobileRoles;

    @TableField(exist = false)
    private JSONArray mobHalfs;
}